<script setup lang='ts'>
    const changeValue = (num: number,event:Event) => {
        const ele = event.target as HTMLInputElement
        console.log(ele.value)
    }
</script>
       
<template>
    <input type="text" @input="changeValue(1, $event)">   
</template>
       
<style scoped>
       
</style>